package com.meizi.codegenerate.constant;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Administration
 * @date 2022/11/1 - 15:06 - 星期二
 * @project lambda
 * @package com.meizi.codegenerate.constant
 * @by 晨
 */
@Data
public class TableNameConstant {

    /**
     * 根据表明生成对应的文件
     */
    private static List<String> tableNameList = new ArrayList<>();

    /**
     * 表前缀(类名不会包含表前缀)
     */
    public static final String TABLE_PREFIX  = "";


    /**
     * 字段前缀(类名不会包含表前缀)
     */
    public static final String COLUMN_PREFIX  = "";

    /**
     *java文件后缀
     */
    public static final String JAVA = ".java";

    /**
     *
     */
    public static final String LOWER_SCRIBING = "_";

    // 加载表名称
    static {
        //tableNameList.add("yibao_ali_config");
        //tableNameList.add("propaganda_hospital");
        //tableNameList.add("system_configuration_page_model");
        //tableNameList.add("system_configuration_page_model_detail");
        tableNameList.add("progress_reporting");
    }

    public static void setTableNameList(List<String> tableNameList) {
        TableNameConstant.tableNameList = tableNameList;
    }

    public static List<String> getTableNameList() {
        return tableNameList;
    }

    //#@FeignClient(name = "") 项目名称
    public static final String FeignClient_NAME = "provider";
}
